<?php
require('connect_sql.php');
require('function.php');
session_start();
if(isset($_SESSION['userid']))
{
	if(!isset($_REQUEST['page']))
	{
		include('../views/index.php');
	}
	else
	{	
		if($_REQUEST['page']==1)
		{
			include('../views/navbar.php');
			navbar();
		}
		else if($_REQUEST['page']==2)
		{
			include('../views/main.php');
			main();
		}
		else if($_REQUEST['page']==3)
		{
			include('../views/userinformation.php');
			userinformation($_REQUEST['thisuser']);
		}
	}
}
else
{
	echo "请登陆！";
}
	


?>